﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProfessionArea.aspx.cs" Inherits="WebSite.cn.ProfessionArea" %>


<%@ Register Src="head.ascx" TagName="head" TagPrefix="uc1" %>
<%@ Register Src="category.ascx" TagName="category" TagPrefix="uc2" %>
<%@ Register Src="bottom.ascx" TagName="bottom" TagPrefix="uc3" %>
<%@ Register Src="leftimgs.ascx" TagName="leftimgs" TagPrefix="uc5" %>

<%@ Register assembly="Gift.Utile" namespace="Gift.Utile" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title><%=WebSite.info.info1("", "shoptitle")%></title>
    <meta name="Description" content="<%=WebSite.info.info1("","shopcontent")%>" /> 
    <meta name="Keywords" content="<%=WebSite.info.info1("","shopkey")%>" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        function locheck() {
            if (lofrm.luser.value == "") {
                alert('请输入用户名!');
                lofrm.luser.focus();
                return false;
            }
            if (lofrm.lpas.value == "") {
                alert('请输入密码!');
                lofrm.lpas.focus();
                return false;
            }
        }
        function oclicks() {
            order.orderkey.value = "";
        }
        function oclick() {
            if (order.orderkey.value == "请输入订单号") {
                order.orderkey.value = "";
            }
            if (order.orderkey.value == "") {
                alert('请输入订单号!');
                order.orderkey.focus();
                return false;
            }
        }
    </script>

</head>
<body>

    <center>
	<uc1:head ID="head_1" runat="server" />
<div id="container">

   	<form id="form1" runat="server">
   <div id="leftContent"> 
	   <uc2:category ID="category_1" runat="server" />   
      <uc5:leftimgs ID="leftimgs_1" runat="server" />  
   </div>
   <div id="content">

      <div class="location"><a href="index.aspx">所有位置</a> > <span class="text_red03">专区</span></div>
      
      <div id="divLogin" runat="server" style=" float:left; width:100%;">
            <table border="0" cellspacing="0" cellpadding="0" style="width: 98%">
                
              <tr>
                <td colspan="9" style="text-align:left;" ><%=sLoginMessage %></td>
              
              </tr>
              <tr bgcolor="#94B1C0">
                <td height="28" align="right" bgcolor="#FFFFFF" width="100px" >卡　号：</td>
                <td align="left" bgcolor="#FFFFFF" width="180px"">　
                  <asp:TextBox ID="txtCardCode" runat="server"></asp:TextBox>
                  </td>
                <td align="left" bgcolor="#FFFFFF" width="100px">密　码：</td>
                <td align="left" bgcolor="#FFFFFF" width="180px">
                    <asp:TextBox ID="txtPassword" TextMode="Password" runat="server"></asp:TextBox>
                  </td>
                <td align="left" bgcolor="#FFFFFF" width="100px">验证码：</td>
                <td  align="left" bgcolor="#FFFFFF" width="140px">
                <asp:TextBox ID="txtValidate"  runat="server" Width="60px"></asp:TextBox>
                  </td>
                <td width="100px"align="left" bgcolor="#FFFFFF">
                     <asp:Image ID="Image1" runat="server" Height="24px" ImageAlign="Middle" ImageUrl="~/admin/CheckCode.aspx" Width="68px" />
                  </td>
                <td width="100px" align="left" bgcolor="#FFFFFF">
                     &nbsp;</td>
                <td width="100px" align="left" bgcolor="#FFFFFF">
  
                   <asp:Button ID="txtSubmit" class="button" runat="server"  Text="提 交"   onclick="txtSubmit_Click"></asp:Button>
                  </td>
              </tr>
           
            </table>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtCardCode" ErrorMessage="卡号不能为空！"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtPassword" ErrorMessage="密码不能为空！"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtValidate" ErrorMessage="验证码不能为空！"></asp:RequiredFieldValidator>
                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red" ></asp:Label>
      </div>

      <div align="left" style="line-height:40px">

        <asp:Label ID="lblMoneyMessage" Font-Size="16px"  ForeColor="Red" runat="server"></asp:Label> 
        <asp:LinkButton ID="lbtnExit" runat="server"  Text="退出" CausesValidation="false" onclick="lbtnExit_Click"></asp:LinkButton>

      </div>
    
	  <div>

        
          <cc1:CustomList ID="productsList"  Height="300px"  runat="server"  EmptyText="" 
            OnPageIndexChanged="PageChanged" PageSize="50" RepeatColumns="4" 
              ItemStyle-VerticalAlign="Top"  RepeatDirection="Horizontal"
            CellPadding="0" CurrentPageIndex="1" ForeColor="#333333" HorizontalAlign="Left" 
            onitemdatabound="productsList_ItemDataBound" > 
            <HeaderTemplate>
              <%=productsList.BuilderOutPageHeaderHtml%>
            </HeaderTemplate>
           <ItemTemplate>
             <br /><br />
			   
   <div style="border-width:0px;  border-color:#ddd; border-style:solid; margin:15px 10px 0px 10px; ">
 <p>
  
			    <a href='products_details.aspx?pid=<%# DataBinder.Eval(Container.DataItem, "proid") %>&sid=2' >
			    <asp:Image ID="Image2" runat="server" 
                        ImageUrl= <%# "/uploadfile/product/" + DataBinder.Eval(Container.DataItem, "propic2") %> CssClass="img02" 
                        BorderWidth="1px"></asp:Image></a>
			    </p>
<br>
				<ul >
                <li style="height:36px;" ><a  title='<%# DataBinder.Eval(Container.DataItem, "proname").ToString()%>'  href=products_details.aspx?pid=<%# DataBinder.Eval(Container.DataItem, "proid") %>&sid=<%=Request.QueryString["sid"] %>><%# DataBinder.Eval(Container.DataItem, "proname").ToString().Length >20 ? DataBinder.Eval(Container.DataItem, "proname").ToString().Substring(0,20) : DataBinder.Eval(Container.DataItem, "proname")  %> </a></li>
				   <li style="height:18px;"><asp:Label ID="price" runat="server" CssClass="text_red" Text=<%# "兑换价:" + String.Format("{0:f}",DataBinder.Eval(Container.DataItem, "proprice1")) %>></asp:Label><asp:Label ID="Label1" runat="server" CssClass="text_red" Text=<%# String.Format("{0:f}",DataBinder.Eval(Container.DataItem, "proprice1")) %> Visible="false"></asp:Label> <span class="text03" style="display:none"><%# String.Format("{0:f}",DataBinder.Eval(Container.DataItem, "proprice3")) %></span></li>
				  
                 
				</ul>
</div>
		   </ItemTemplate>
		 </cc1:CustomList>
	  </div>

   
	
  
        <div>
       <input type="hidden" name="score"  />
          <input type="hidden" name="content"  />
      <input type="hidden" name="pronum"  />
    </div>


    </form>

    
    </div> 
             <uc3:bottom ID="bottom_1" runat="server" />
   
</center>
  


</body>
</html>
